import Vue from 'vue'
import VueRouter from 'vue-router'
import UserLogin from "@/views/UserLogin.vue";
import OrderView from "@/views/order/OrderView.vue";
import user from "@/views/user/UserView.vue";
import TopView from "@/views/TopView.vue";
import MainView from "@/views/top/MainView.vue";
//------
import DiscoverMusicView from '@/views/top/DiscoverMusicView.vue';
import LikesView from '@/views/top/LikesView.vue';
import FollowView from '@/views/top/FollowView.vue';
import CreatorPlatformView from '@/views/top/CreatorPlatformView.vue';
import MainIndex from "@/views/main/MainIndex.vue";
import MainMusic from "@/views/main/MainMusic.vue";
import PayView from "@/views/pay/PayView.vue";
import UserRegister from "@/views/UserRegister.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: "/login",
        name: "UserLogin",
        component: UserLogin
    },
    {
        path: '/register',
        name: 'UserRegister',
        component: UserRegister,
    },
    {
        path: '/order',
        name: 'OrderView',
        component: OrderView
    },
    {
        path: '/user',
        name: 'user',
        component: user
    },

    {
        path: '/',
        name: 'MainView',
        component: MainView
    },

    {
        path: '/top',
        name: 'TopView',
        component: TopView
    },

    {
        path: '/discover-music',
        name: 'discover-music',
        component: DiscoverMusicView
    },
    {
        path: '/likes',
        name: 'likes',
        component: LikesView
    },
    {
        path: '/follow',
        name: 'follow',
        component: FollowView
    },
    {
        path: '/creator-platform',
        name: 'creator-platform',
        component: CreatorPlatformView
    },

    {
        path: '/MainMusic',
        name: 'MainMusic',
        component: MainMusic
    },
    {
        path: '/MainIndex',
        name: 'MainIndex',
        component: MainIndex
    },
    {
        path: '/pay',
        name: 'PayView',
        component: PayView
    },

]

const router = new VueRouter({
    routes
})

export default router
